package com.example.web.page;

import org.apache.wicket.Page;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.Link;

/**
 * Created by IntelliJ IDEA.
 * User: Sergey
 * Date: 17.10.13
 * Time: 0:21
 * To change this template use File | Settings | File Templates.
 */
public class BaseTemplate extends WebPage {
    public BaseTemplate() {
        add(new Link("linkToHomePage"){
            @Override
            public void onClick() {
                Page next = new IndexPage();
                setResponsePage(next);
            }
        });

        add(new Link("linkToUserPage"){
            @Override
            public void onClick() {
                Page next = new UserPage();
                setResponsePage(next);
            }
        });

        add(new Link("linkToAdminPage"){
            @Override
            public void onClick() {
                Page next = new AdminPage();
                setResponsePage(next);
            }
        });
    }
}
